package com.learning.spring.cloud.eureka.controller;

import com.learning.spring.cloud.eureka.feign.DcClientFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: DcController
 * @Description:
 * @author: limingxing
 * @Date: 2020-07-10 14:25
 */
@RestController
public class DcController {

    @Autowired
    DcClientFeign dcClient;

    @GetMapping("/consumer")
    public String dc() {
        return dcClient.consumer();
    }
}